<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: Set name flags</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a>  </div>
  <div class="headertitle">
<div class="title">Set name flags</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Passed as 'flag' parameter to <a class="el" href="name_8hpp.html#aa75fb1ba89bb22f323472e329eb4a486" title="Set or delete name of an item at the specified address. ">set_name(ea_t, const char *, int)</a> </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga1458a641d26514c3464c986b74d003aa"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga1458a641d26514c3464c986b74d003aa"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><b>SN_CHECK</b>&#160;&#160;&#160;0x00</td></tr>
<tr class="separator:ga1458a641d26514c3464c986b74d003aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad7882b24fb8463d16e80274851e0e203"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#gad7882b24fb8463d16e80274851e0e203">SN_NOCHECK</a>&#160;&#160;&#160;0x01</td></tr>
<tr class="memdesc:gad7882b24fb8463d16e80274851e0e203"><td class="mdescLeft">&#160;</td><td class="mdescRight">Don't fail if the name contains invalid characters.  <a href="#gad7882b24fb8463d16e80274851e0e203">More...</a><br /></td></tr>
<tr class="separator:gad7882b24fb8463d16e80274851e0e203"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga0867a80ae5531d5a6f37e9b8ca2078d8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga0867a80ae5531d5a6f37e9b8ca2078d8"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#ga0867a80ae5531d5a6f37e9b8ca2078d8">SN_PUBLIC</a>&#160;&#160;&#160;0x02</td></tr>
<tr class="memdesc:ga0867a80ae5531d5a6f37e9b8ca2078d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">if set, make name public <br /></td></tr>
<tr class="separator:ga0867a80ae5531d5a6f37e9b8ca2078d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa682721856e47459dd83249ce69e84f4"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gaa682721856e47459dd83249ce69e84f4"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#gaa682721856e47459dd83249ce69e84f4">SN_NON_PUBLIC</a>&#160;&#160;&#160;0x04</td></tr>
<tr class="memdesc:gaa682721856e47459dd83249ce69e84f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">if set, make name non-public <br /></td></tr>
<tr class="separator:gaa682721856e47459dd83249ce69e84f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a3e06b901908b81c01a9f0062e9b71b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga6a3e06b901908b81c01a9f0062e9b71b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#ga6a3e06b901908b81c01a9f0062e9b71b">SN_WEAK</a>&#160;&#160;&#160;0x08</td></tr>
<tr class="memdesc:ga6a3e06b901908b81c01a9f0062e9b71b"><td class="mdescLeft">&#160;</td><td class="mdescRight">if set, make name weak <br /></td></tr>
<tr class="separator:ga6a3e06b901908b81c01a9f0062e9b71b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3dc2cae373dd31ec2dc329afbaf0d3e9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga3dc2cae373dd31ec2dc329afbaf0d3e9"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#ga3dc2cae373dd31ec2dc329afbaf0d3e9">SN_NON_WEAK</a>&#160;&#160;&#160;0x10</td></tr>
<tr class="memdesc:ga3dc2cae373dd31ec2dc329afbaf0d3e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">if set, make name non-weak <br /></td></tr>
<tr class="separator:ga3dc2cae373dd31ec2dc329afbaf0d3e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga649469af3f3ed0924be751921e29d60e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga649469af3f3ed0924be751921e29d60e"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#ga649469af3f3ed0924be751921e29d60e">SN_AUTO</a>&#160;&#160;&#160;0x20</td></tr>
<tr class="memdesc:ga649469af3f3ed0924be751921e29d60e"><td class="mdescLeft">&#160;</td><td class="mdescRight">if set, make name autogenerated <br /></td></tr>
<tr class="separator:ga649469af3f3ed0924be751921e29d60e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5839893e37d57ecdea4964f844ed019d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5839893e37d57ecdea4964f844ed019d"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#ga5839893e37d57ecdea4964f844ed019d">SN_NON_AUTO</a>&#160;&#160;&#160;0x40</td></tr>
<tr class="memdesc:ga5839893e37d57ecdea4964f844ed019d"><td class="mdescLeft">&#160;</td><td class="mdescRight">if set, make name non-autogenerated <br /></td></tr>
<tr class="separator:ga5839893e37d57ecdea4964f844ed019d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga68ba63b7a7a9a881df414b7bfdce7447"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#ga68ba63b7a7a9a881df414b7bfdce7447">SN_NOLIST</a>&#160;&#160;&#160;0x80</td></tr>
<tr class="memdesc:ga68ba63b7a7a9a881df414b7bfdce7447"><td class="mdescLeft">&#160;</td><td class="mdescRight">if set, exclude name from the list.  <a href="#ga68ba63b7a7a9a881df414b7bfdce7447">More...</a><br /></td></tr>
<tr class="separator:ga68ba63b7a7a9a881df414b7bfdce7447"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga84c416eb3ed6bc386932d8da15bb134b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga84c416eb3ed6bc386932d8da15bb134b"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#ga84c416eb3ed6bc386932d8da15bb134b">SN_NOWARN</a>&#160;&#160;&#160;0x100</td></tr>
<tr class="memdesc:ga84c416eb3ed6bc386932d8da15bb134b"><td class="mdescLeft">&#160;</td><td class="mdescRight">don't display a warning if failed <br /></td></tr>
<tr class="separator:ga84c416eb3ed6bc386932d8da15bb134b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6052ebef5e57c6e905fe9f902188401d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#ga6052ebef5e57c6e905fe9f902188401d">SN_LOCAL</a>&#160;&#160;&#160;0x200</td></tr>
<tr class="memdesc:ga6052ebef5e57c6e905fe9f902188401d"><td class="mdescLeft">&#160;</td><td class="mdescRight">create local name.  <a href="#ga6052ebef5e57c6e905fe9f902188401d">More...</a><br /></td></tr>
<tr class="separator:ga6052ebef5e57c6e905fe9f902188401d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabb4de680eb13eaaf581e4082ce7524f3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#gabb4de680eb13eaaf581e4082ce7524f3">SN_IDBENC</a>&#160;&#160;&#160;0x400</td></tr>
<tr class="memdesc:gabb4de680eb13eaaf581e4082ce7524f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">the name is given in the IDB encoding;  <a href="#gabb4de680eb13eaaf581e4082ce7524f3">More...</a><br /></td></tr>
<tr class="separator:gabb4de680eb13eaaf581e4082ce7524f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabdc1743c42551da5864b7073b41438f8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_n__.html#gabdc1743c42551da5864b7073b41438f8">SN_FORCE</a>&#160;&#160;&#160;0x800</td></tr>
<tr class="memdesc:gabdc1743c42551da5864b7073b41438f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">if the specified name is already present  <a href="#gabdc1743c42551da5864b7073b41438f8">More...</a><br /></td></tr>
<tr class="separator:gabdc1743c42551da5864b7073b41438f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="gad7882b24fb8463d16e80274851e0e203"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SN_NOCHECK&#160;&#160;&#160;0x01</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Don't fail if the name contains invalid characters. </p>
<p>If this bit is clear, all invalid chars (those !is_ident_cp()) will be replaced by SUBSTCHAR List of valid characters is defined in ida.cfg </p>

</div>
</div>
<a class="anchor" id="ga68ba63b7a7a9a881df414b7bfdce7447"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SN_NOLIST&#160;&#160;&#160;0x80</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>if set, exclude name from the list. </p>
<p>if not set, then include the name into the list (however, if other bits are set, the name might be immediately excluded from the list). </p>

</div>
</div>
<a class="anchor" id="ga6052ebef5e57c6e905fe9f902188401d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SN_LOCAL&#160;&#160;&#160;0x200</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>create local name. </p>
<p>a function should exist. local names can't be public or weak. also they are not included into the list of names they can't have dummy prefixes. </p>

</div>
</div>
<a class="anchor" id="gabb4de680eb13eaaf581e4082ce7524f3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SN_IDBENC&#160;&#160;&#160;0x400</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the name is given in the IDB encoding; </p>
<p>non-ASCII bytes will be decoded accordingly </p>

</div>
</div>
<a class="anchor" id="gabdc1743c42551da5864b7073b41438f8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SN_FORCE&#160;&#160;&#160;0x800</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>if the specified name is already present </p>
<p>in the database, try variations with a numerical suffix like "_123" </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
